import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.*;

/**
 * Created by netsasha on 23.10.2014.
 */

class TestClass
{
    public String toString()
    {
        return "Lala";
    }
}

public class MainClassNonePackage
{
    int a;
    static ArrayList<MainClassNonePackage> list;
    public static void main(String[] args)
    {
        System.out.println("Hello!");
        System.out.println(System.getProperty("java.version"));
        for (String s : args)
            System.out.println(s);

        System.out.println("str " + 2);
        System.out.println(5 + " str");
        System.out.println(new Integer(9000).toString());

        MainClassNonePackage p  = new MainClassNonePackage();

        System.out.println(p.toString());
        System.out.println(Integer.toHexString(p.hashCode()));
        System.out.println(new MainClassNonePackage());

        System.out.println(new TestClass());

        /*list = new ArrayList<MainClassNonePackage>();

        while (true)  //java.lang.OutOfMemoryError: Java heap space
        {
            MainClassNonePackage z = new MainClassNonePackage();
            z.a = 100500;
            list.add(z);
        }*/

        Calendar cal = Calendar.getInstance();

        int day = cal.get(Calendar.DAY_OF_MONTH);
        int month = cal.get(Calendar.MONTH) + 1;
        int year = cal.get(Calendar.YEAR);

        System.out.println(cal);

        System.out.println(day + "." + month + "." + year);

        System.out.println(cal.getDisplayName(Calendar.MONTH, Calendar.LONG, Locale.US)
                .toUpperCase());


        // Input With jata.util.Scanner
        {
            Scanner sc = new Scanner(System.in);
            String s = sc.nextLine();
            System.out.println(s);
        }


        // Input With java.io.BufferedReader, java.io.InputStreamReader, java.io.InputStream
        {
            InputStream is = System.in;
            InputStreamReader isr = new InputStreamReader(is);
            BufferedReader br = new BufferedReader(isr);

            try
            {
                String s = br.readLine();
                System.out.println("[" + s + "]");
                int a = Integer.parseInt(s);
                System.out.println(a * a);
            }
            catch (IOException e)
            {
                e.printStackTrace();
            }
        }


        Season season = Season.SUMMER;
        System.out.println(season);
    }

    enum Season {WINTER, SPRING, SUMMER, AUTUMN};
}
